package com.flyduck.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flyduck.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.flyduck.vo.*;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author flyduck
 * @since 2024-05-27
 */
public interface SysRoleService {

    SysRoleDetailsRespVO getRoleDetailsById(Long id);

    Page<SysRoleRespVO> getRolePageBySysRoleQueryReqVO(Page page, SysRoleQueryReqVO sysRoleQueryReqVO);

    void saveRole(SysRoleSaveReqVO sysRoleSaveReqVO);

    void updateRole(SysRoleUpdateReqVO sysRoleUpdateReqVO);

    void deleteByIds(List<Long> ids);

    void assignMenuListToRole(Long roleId, List<Long> menuIds);
}
